package models

import (
	"time"
)

// TableName 设置Course表名
func (a *Course) TableName() string {
	return CourseTBName()
}

// CourseQueryParam 用于搜索的类
type CourseQueryParam struct {
	BaseQueryParam
	NameLike string
}

// Course 实体类
type Course struct {
	Id        int
	Name      string `orm:"size(32)"`
	ShortName string `orm:"size(8)"`
	Price     float32
	RealPrice float32
	Img       string `orm:"size(256)"`
	StartTime time.Time
	EndTime   time.Time
	Seq       int
	Creator   *BackendUser `orm:"rel(fk)"` //设置一对多关系
}